import request from '@/utils/request'

// 查询车道配置列表
export function getlaneList(id) {
  return request({
    url: "/lane/list?deptId="+id,
    method: "get",
  });
}

// 新增车道配置
export function addLane(data) {
  return request({
    url: "/lane/add",
    method: "post",
    data: data,
  });
}

// 修改车道配置
export function updateLane(data) {
  return request({
    url: "/lane/update",
    method: "post",
    data: data,
  });
}

// 删除车道配置
export function dellane(id) {
  return request({
    url: "/lane/" + id,
    method: "delete",
  });
}

// 查询
export function getlaneStatistics(query) {
  return request({
    url: "/lane/laneStatistics",
    method: "get",
    params: query
  });
}

export function getLaneInfo(query) {
  return request({
    url: "/lane/screen/" + query.id,
    method: "get",
  });
}

